package com.hdsx.springboot.controller;

import com.hdsx.springboot.bean.BaseNodeBean;
import com.hdsx.springboot.mapper.UserMapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 占贤银
 * time 2024/6/2 13:00
 * description 生命之灯因热情而点燃，生命之舟因拼搏而前行
 */
@RestController
@RequestMapping("/index")
public class UserController {

    @Resource
    private UserMapper mapper;

    @RequestMapping("/login")
    public List<BaseNodeBean> login() {
        System.out.println("登录成功...");
        return mapper.getGcflTree();
    }
}
